#!/bin/bash
#

#多线程检测网段主机

for i in $(seq 254); do
    {
    ip=10.11.11.$i
    if ping -c 2 -W 1 $ip &> /dev/bull; then
	echo "Host $ip is up" 
    fi
    }&
done
wait
